<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* visibility:hidden; 隐藏 */
        /* visibility:visible；显示 */
        /* visibility:hitten;隐藏后保留位置 */
          .box1 {
            width: 200px;
            height: 200px;
            background-color: tomato;
            visibility: hidden; /* 隐藏 */
        }
        .box2 {
            width: 200px;
            height: 200px;
            background-color: turquoise;
            visibility: visible;/* 显示 */
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
</body>
</html>